#ifndef VIEW_COMPONENT_CPANELWIDGET_H_
#define VIEW_COMPONENT_CPANELWIDGET_H_

#include <QWidget>

class QAbstractButton;

class CPanelWidget : public QWidget
{
    Q_OBJECT
public:
    CPanelWidget(QWidget *parent = nullptr);
    ~CPanelWidget();

    QAbstractButton *getHeaderButton(int index);

    QWidget *getHeader();

    QWidget *getContent();

    void setWindowTitle(const QString &title);

    void setTitleAlignment(Qt::Alignment align);

protected:
    void paintEvent(QPaintEvent* event) override;

private:
    class CPanelWidgetPrivate;
    CPanelWidgetPrivate *p_;
};

#endif // VIEW_COMPONENT_CPANELWIDGET_H_